<?php
class Khtuan extends AppModel {

	var $name = 'Khtuan';
	var $validate = array(
		'congviec' => array('notempty'),
		'dvt_id' => array('numeric'),
		'muctieu' => array('notempty'),
		'chitieu' => array('notempty'),
		'chutri' => array('notempty'),
		'thuchien' => array('notempty'),
		'phoihop' => array('notempty'),
		'dgiai' => array('notempty'),
		'diadiem' => array('notempty'),
		'donvi_id' => array('numeric'),
		'kehoach_id' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Dvt' => array(
			'className' => 'Dvt',
			'foreignKey' => 'dvt_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Donvi' => array(
			'className' => 'Donvi',
			'foreignKey' => 'donvi_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Kehoach' => array(
			'className' => 'Kehoach',
			'foreignKey' => 'kehoach_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>